package cn.edu.scau.cmi.yewangjiang.spring.util;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ApplicationContextUtil {
	private static ApplicationContext applicationContext;
	
	public static ApplicationContext getApplicationContext() { 
		if(applicationContext == null) {
			applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");   
		}
		return applicationContext;  
	}
}
